package DengLu;

import java.util.Scanner;

public class LoginTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名");
        String userName = scanner.next();
        System.out.println("请输入密码");
        String password = scanner.next();

        Login user = new Login();
        boolean xxz = user.login(userName,password);
        if (xxz) {
            System.out.println("登录成功" + userName);
        }else{
            System.out.println("密码错误");
        }
    }
}
